<?php include_once "inc/head.php"; ?>
<link href="/css/rl.css" rel="stylesheet" type="text/css" media="screen" />
<script src="/js/rl.js" type="text/javascript"></script>
</head>
<body>
<div id="wrapper">
	<?php include_once "inc/header.php"; ?>
	<!-- end #menu -->
	<div id="headerPageSplitter"><div></div></div>
	<div id="page">
	<div id="page-bgtop">
	<div id="page-bgbtm">
		<div id="content">
			<?php
			
			$pageList = scandir("page/rl");
			unset($pageList[0], $pageList[1]); //Remove '.' and '..' from array
			
			$page = strtolower($p.".php");
				
			if(in_array($page, $pageList)){
				include_once "page/rl/{$page}";
			}
			else
			{
				include_once "page/error/404.php";
			}
				
			?>
		<div style="clear: both;">&nbsp;</div>
		</div>
		<!-- end #content -->
		<div id="sidebar">
			<?php include_once "inc/sidebar.php"; ?>
		</div>
		<!-- end #sidebar -->
		<div style="clear: both;height: 0px;">&nbsp;</div>
	</div>
	</div>
	</div>
	<!-- end #page -->
</div>
	<?php include_once "inc/footer.php"; ?>
	<!-- end #footer -->
</body>
</html>